package com.liu.service.impl;

import com.liu.dao.WorkingMapper;
import com.liu.entity.Working;
import com.liu.service.WorkingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class WorkingServiceImpl implements WorkingService {
    @Autowired
    private WorkingMapper workingMapper;

    public void setWorkingMapper(WorkingMapper workingMapper) {
        this.workingMapper = workingMapper;
    }
    @Override
    public Working getInfoByID(int id) {
        return workingMapper.getInfoByID(id);
    }

    @Override
    public int getInfoByTitle(String title) {
        return workingMapper.getInfoByTitle(title);
    }

    @Override
    public List<Working> getAll() {
        return workingMapper.getAll();
    }

    @Override
    public int addInfo(Working working) {
        return workingMapper.addInfo(working);
    }
}
